<script>
	import {
		useStore
	} from "./cool";

	export default {
		onLaunch: function() {
			console.log("App Launch");
		},
		onShow: function() {
			const {
				user
			} = useStore()
			if (user.token) {
				user.socketLink()
			}
		},
		onHide: function() {
			const {
				user
			} = useStore()
			if (user.socket) {
				user.diSocketLink()
			}
			console.log("App Hide");
		},
	};
</script>

<style lang="scss">
	@import "/@/ui/index.scss";

	.p-20 {
		padding: 20rpx;box-sizing: border-box;
	}

	.p-10 {
		padding: 10rpx;box-sizing: border-box;
	}

	.p-30 {
		padding: 0 30rpx;box-sizing: border-box;
	}

	page {
		background-color: #f6f7fa;
		
	}
</style>